package cn.shop.alibaba.feign;

import cn.shop.alibaba.beans.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "server-user",fallback = UserServiceFeignFallBack.class)
public interface UserServiceFeign {
    @GetMapping(value = "/user/{uid}")
    public User getuser(@PathVariable("uid") Long uid);
}
